feat(cli): support multiple --upload flags on sandbox create (#1635)#1645
feat(cli): support multiple --upload flags on sandbox create (#1635)#1645feloy wants to merge 1 commit into
Conversation
…1635) Closes NVIDIA#1635 Signed-off-by: Philippe Martin <phmartin@redhat.com>
|
All contributors have signed the DCO ✍️ ✅ |
|
I have read the DCO document and I hereby sign the DCO. |
|
recheck |
PR Review StatusValidation: this PR is project-valid because it implements the scoped CLI UX improvement requested in #1635 and stays within the sandbox create upload path. Review findings:
Docs: direct CLI UX change is covered by the Fern docs update in E2E: Next state: BlockedGator is blocked by the current branch state: GitHub reports Next action: @feloy, please rebase or otherwise update the PR branch to resolve the dirty merge state. I verified maintainer authority for the current gator user, so once the current head SHA is rebased, mergeable, and ready for tests, gator is cleared to post |
|
Label |
Closes #1635
Summary
Changes
--uploadonsandbox createfrom a singleOption<String>to a repeatableVec<String>, so users can seed a sandbox with multiple paths in one command without needing a post-creationsandbox uploadstep.Related Issue
Closes #1635
Changes
crates/openshell-cli/src/main.rs:uploadfield changed toVec<String>; all local paths are validated upfront before the sandbox is created; three new CLI-parse tests addedcrates/openshell-cli/src/run.rs:sandbox_createnow accepts&[(String, Option<String>, bool)]and iterates over each spec sequentially; progress output shows[1/N]counters when multiple uploads are presentcrates/openshell-cli/tests/sandbox_create_lifecycle_integration.rs: updated 10 call sites fromNoneto&[]to match the new signaturedocs/sandboxes/manage-sandboxes.mdx: updated the--uploadnote with a multi-upload examplee2e/rust/src/harness/sandbox.rs: addedcreate_with_uploadshelper accepting multiple(local, dest)pairs;create_with_uploaddelegates to ite2e/rust/tests/upload_create.rs: addedcreate_with_multiple_uploadstest that uploads two directories in onesandbox createcall and asserts both appear in outputTesting
mise run pre-commitpassesChecklist